package cn.nbt.busManage.model.dto;

import java.io.Serializable;
import java.util.Date;
import cn.nbt.busManage.model.entity.Schedule;
import cn.nbt.busManage.model.entity.Bus;
import cn.nbt.busManage.model.entity.Driver;
import cn.nbt.busManage.model.vo.ScheduleVo;
import lombok.Data;

@Data
public class ScheduleDto {
    private Integer id;
    private String startTime;
    private String endTime;

    public ScheduleDto(ScheduleVo schedulevo) {
        this.id = schedulevo.getId();
        this.startTime = schedulevo.getStart_time();
        this.endTime = schedulevo.getEnd_time();
    }

    public ScheduleDto(Schedule schedule) {
        this.id = schedule.getId();
        this.startTime = schedule.getStartTime();
        this.endTime = schedule.getEndTime();
    }
}
